<?php
 
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
 
class Video extends CI_Driver_Library {
 
    protected $valid_drivers = array(
        'video_youku', 'video_tudou'
    );
    protected $_adapter;
 
    public function __construct($config = array()) {
        if (!empty($config)) {
            $this->_initialize($config);
        }
    }
 
    private function _initialize($config) {
        $this->_adapter = $config['adapter'];
    }
 
    public function get($id) {
        return $this->{$this->_adapter}->get($id);
    }
 
    public function __get($child) {
        return parent::__get($child);
    }
 
}